package cn.com.mrzheng.web.mapper.role;

import cn.com.mrzheng.web.entity.Auth;
import cn.com.mrzheng.web.entity.Role;
import cn.com.mrzheng.web.entity.User;
import cn.com.mrzheng.web.mapper.base.CurdInterface;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IRoleMapper extends CurdInterface<Role> {

    List<Auth> getRoleAuth(Role role);

    Role getRole(User user);
}
